package com.xu.sms.service;

import java.util.List;

import com.xu.sms.db.MySqliteOpenHelper;
import com.xu.sms.db.SHistoryDao;
import com.xu.sms.entity.SHistory;

public class SHistoryService {
	private MySqliteOpenHelper msoh;
	private SHistoryDao shDao ;
	public SHistoryService(MySqliteOpenHelper msoh){
		this.msoh = msoh;
		shDao = new SHistoryDao(msoh);
	}
	
	public void insert(String keyword){
		shDao.insert(keyword);
	}
	
	public void delete(int id){
		shDao.delete(id);
	}
	
	public void delAll(){
		shDao.delAll();
	}
	
	public List<SHistory> findAll(){
		return shDao.findAll();
	}

}
